package cn.shangqizhenshuai.sqiot.Serivce.impl;

import cn.shangqizhenshuai.sqiot.Serivce.HiValueService;
import cn.shangqizhenshuai.sqiot.entity.HiValue;
import cn.shangqizhenshuai.sqiot.mapper.HiValueMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service("hiValueService")
public class HiValueServiceImpl implements HiValueService {
    @Autowired
    HiValueMapper hiValueMapper;
    @Override
    @Transactional(propagation = Propagation.REQUIRED)
    public Integer add(HiValue hiValue) {
        return hiValueMapper.insert(hiValue);
    }
}
